package cn.com.baozun.sany.workbench.online.manager.validator;

import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;

/**
 * @title: OnlineChangeEntryValidator
 * @description:
 * @author: guan.xin
 * @create: 2021-05-28 21:45
 * @since: JDK8
 */
public class OnlineChangeEntryRuleValidator {

    public static void main(String[] args) {
        ExpressionParser parser = new SpelExpressionParser();

        Expression expression = parser.parseExpression("1 > 2");
        System.out.println(expression.getValue());
    }
}
